package cn.smbms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.smbms.dao.provider.ProviderMapper;
import cn.smbms.pojo.Provider;
import cn.smbms.service.ProviderService;

@Service
public class ProviderServiceImpl implements ProviderService{

	@Resource
	public ProviderMapper pmMapper;

	public List<Provider> getProviderList() {
		
		return pmMapper.getProviderList();
	}

	@Override
	public Provider providerById(Integer id) {
		
		return pmMapper.providerById(id);
	}

	@Override
	public int providerExit(Integer id) {
		
		return pmMapper.providerExit(id);
	}

	@Override
	public int providerupda(Provider provider) {
		// TODO Auto-generated method stub
		return pmMapper.providerupda(provider);
	}

	@Override
	public int provideradd(Provider provider) {

		return pmMapper.provideradd(provider);
	}

}
